package xinxin.com.MediatorPattern;

import xinxin.com.MediatorPattern.Country.Detail.Iraq;
import xinxin.com.MediatorPattern.Country.Detail.USA;
import xinxin.com.MediatorPattern.UnitedNations.UnitedNationsSecurityCouncil;

/**
 * @author ：史鑫鑫
 * @date ：Created in 2019/4/1 22:36
 */
public class MediatorPattern {
    public static void main(String[] args) {
        UnitedNationsSecurityCouncil council = new UnitedNationsSecurityCouncil();

        USA usa = new USA(council);
        Iraq iraq = new Iraq(council);

        council.setUsa(usa);
        council.setIraq(iraq);

        usa.Declare("不准研制核武器，否则要发动战争！");
        iraq.Declare("我们没有核武器，也不怕侵略。");
    }
}
